import {Message} from 'element-ui'

const service = {
  showMessage (message = '错误信息', type = 'error', time = 1500) {
    Message({
      message: message,
      type: type,
      duration: time
    })
  }
}

export default service
